package ui;


import javafx.application.Application;
import javafx.stage.Stage;
import ui.panel.*;
import ui.panel.setup.VideoSetUpStage;
import ui.panel.setup.WallpaperTypeChoiceStage;
import ui.panel.setup.subsidiary.ScreenSaverTimeStage;
import ui.panel.showroom.VideoWallpaperStage;


public class Main extends Application {

    @Override
    public void start(Stage window) throws Exception {
//        WelcomeStage welcome = WelcomeStage.getInstance();
//        welcome.show();
//        openSourceURL(this);
//        MemoryUtil.waiterLog("test");
        WallpaperTypeChoiceStage.getInstance().show();
        openSourceURL(this);
//       VideoWallpaperStage.getInstance().showStage();
//        ScreenSaverTimeStage.getInstance().show();
//        Test1.getInstance().show();

//        WeComeStage.getInstance().show();
    }

    public static void main(String[] args) {
        launch(args);
    }

    //点击文本打开网站
    private void openSourceURL(Application application) {
        SetUpStage.getInstance().openSourceURL(application);
        WallpaperTypeChoiceStage.getInstance().openSourceURL(application);
        VideoSetUpStage.getInstance().openSourceURL(application);
    }
}
